package com.gxa.hualianeshop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.hualianeshop.entity.pojo.Sku;
import com.gxa.hualianeshop.mapper.SkuMapper;
import com.gxa.hualianeshop.service.SkuService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 *
 * @author bill
 * @date 2023/7/21 16:28
 */


@org.apache.dubbo.config.annotation.Service
public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements SkuService {

    @Autowired
    private SkuMapper skuMapper;

    @Override
    public Integer getNumById(Long skuId,Integer num) {
        return skuMapper.getNumById(skuId,num);
    }

    @Override
    public void updateNumById(Long skuId, Integer num) {
        skuMapper.updateNumById(skuId, num);
    }
}
